package com.wmh.baseservice.operationaid.pojo.vo.category;

import com.wmh.baseservice.operationaid.entity.Category;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * @author dongaolong
 * @createDate 2023-06-05
 */
@Data
@ApiModel(value = "商品类目分类vo")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class CategoryReqVO extends Category {

    @ApiModelProperty(value = "父主键")
    @NotEmpty(message = "父主键不能为空")
    private Long parentId;

    @ApiModelProperty(value = "名称")
    private String name;

}
